<template>
  <van-tabbar route>
    <template v-for="item in links">
      <van-tabbar-item :key="item.path" replace :to="item.path" :icon="item.icon">{{ item.text }}</van-tabbar-item>
    </template>
  </van-tabbar>
</template>
<script>
export default {
  data() {
    return {
      links: [
        {
          path: '/layout/home',
          text: '首页',
          icon: 'wap-home-o',
        },
        {
          path: '/layout/buycar',
          text: '买车',
          icon: 'cart-o',
        },
        {
          path: '/layout/sellcar',
          text: '卖车',
          icon: 'search',
        },
        {
          path: '/layout/collect',
          text: '收藏',
          icon: 'home-o',
        },
        {
          path: '/layout/mine',
          text: '我的',
          icon: 'user-o',
        },
        {
          path: '/layout/pullup',
          text: 'vant-上拉',
          icon: 'search',
        },
        {
          path: '/layout/Vmodel',
          text: 'V-model',
          icon: 'user-o',
        },
      ],
    }
  },
}
</script>
